//
//  TMNetDataInterface.h
//  TaskManager
//
//  Created by vip on 16/5/19.
//  Copyright © 2016年 M&H. All rights reserved.
/*************************************
 *
 *  这个类提供数据的获取接口
 *
 ************************************/

#import <Foundation/Foundation.h>
#import "TMNetError.h"
//#import "GNRLoginParam.h"
//#import "GNRSendVercodeParam.h"
//#import "GNRRegisterParam.h"
#import "GNRProfileInfoParam.h"
//#import "GNRTimingParam.h"
#import "GNRGetMarksParam.h"
#import "GNRMarkInfoParam.h"
//#import "GNRShopListParam.h"
//#import "GNRGoodsListParam.h"
//#import "GNRGoodsDetailParam.h"
//#import "GNRBuyDiscountParam.h"
//#import "GNRDiscountListParam.h"
//#import "GNRUseDiscountParam.h"
//#import "GNRDailySignInParam.h"
//#import "GNRVersionCheckParam.h"

typedef void(^completetionBlock)(BOOL success,TMNetError * error);

@interface TMNetDataInterface : NSObject

///**
// *  登录
// *
// *  @param completed void
// */
//+ (void)login:(GNRLoginParam*)model forgot:(BOOL)forgot finish:(completetionBlock)completed;
//
///**
// *  发送短信验证码
// *  @param forgot 是否忘记密码
// *  @param completed void
// */
//+ (void)sendVercode:(GNRSendVercodeParam*)model forgot:(BOOL)forgot finish:(completetionBlock)completed;
//
///**
// *  注册
// *
// *  @param completed void
// */
//+ (void)registe:(GNRRegisterParam*)model finish:(completetionBlock)completed;

/**
 *  个人信息
 *  @param update 是否更新
 *  @param completed void
 */
+ (void)profileInfo:(GNRProfileInfoParam*)model update:(BOOL)update finish:(completetionBlock)completed;

/**
 上传头像
 
 @param imgPath 图片path
 @param model 个人信息model
 @param value 上传进度
 @param completed 结果回调
 */
//+ (void)uploadHead:(NSString*)imgPath param:(GNRProfileInfoParam *)model progress:(void (^)(double progress))value finish:(completetionBlock)completed;


//计时上传
//+ (void)timingUpload:(GNRTimingParam *)model param:(NSMutableDictionary *)param finish:(completetionBlock)completed;

/**
 获取 一段时间 内的积分
 */
+ (void)getDayMarks:(GNRGetMarksParam *)marksParam finish:(completetionBlock)completed;


/**
 获取当日/总 积分/时间 获取
 */
+ (void)getMarkInfo:(GNRMarkInfoParam *)markInfoParam finish:(completetionBlock)completed;

/**
 获取商家列表
 */
//+ (void)getShopList:(GNRShopListParam *)shopListParam Finish:(completetionBlock)completed;
//
///**
// 获取商品列表
// */
//+ (void)getGoodsList:(GNRGoodsListParam *)goodsListParam Finish:(completetionBlock)completed;
//
//
///**
// 商品详情
// */
//+ (void)getGoodsDetail:(GNRGoodsDetailParam *)param finish:(completetionBlock)completed;
//
///**
// 购买商品优惠券
// */
//+ (void)buyDiscount:(GNRBuyDiscountParam *)param finish:(completetionBlock)completed;
//
///**
// 优惠券列表 购买记录
// */
//typedef NS_ENUM(NSInteger,GNRDiscountListGetType){
//    GNRDiscountListGetTypeDiscountList,//我的优惠券列表
//    GNRDiscountListGetTypeBuyList,//购买记录
//};
//+ (void)discountList:(GNRDiscountListParam *)param type:(GNRDiscountListGetType)type finish:(completetionBlock)completed;
//
////使用优惠券
//+ (void)useDiscount:(GNRUseDiscountParam *)param finish:(completetionBlock)completed;
//
////签到
//+ (void)dailySignIn:(GNRDailySignInParam *)param finish:(completetionBlock)completed;
//
////版本检测
//+ (void)checkVersion:(GNRVersionCheckParam *)param finish:(completetionBlock)completed;
@end
